export default {
  state: {
    account: false,//是否是统计页面
    typeApply: '',//代理类型 1-城市个人2-城市组织3-推广个人4-推广组织
    in: true,
    user: {
      account: "admin",//管理员账号
      add_time: 1571884589,
      id: 1,//管理员id/店铺id/团队人员id
      last_time: 1572424658,//最后登录时间
      name: "超级管理员",//管理员姓名/店铺名称
      phone: "15823581734",//管理员手机号
      role_id: 3,//权限id
      state: 1,//	状态 1正常 2删除 3 冻结
      type: 1,//	用户类型 1平台管理员 2店铺管理员 3团队
      role: '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16',
    },
    roleData:[
      {key:1,name:'K神大礼包'},{key:2,name:'好店推荐'},{key:3,name:'平台商铺管理'},{key:4,name:'优惠券管理'},{key:5,name:'KTV管理'},
      {key:6,name:'管理员管理'},{key:7,name:'大转盘中奖管理'},{key:8,name:'合作商推广'},{key:9,name:'K神大礼包'},{key:10,name:'用户点赞商家管理'},
      {key:11,name:'消费者管理'},{key:12,name:'城市代理商管理'},{key:13,name:'推广代理商管理'},{key:14,name:'团队经理管理'},{key:15,name:'地推人员管理'},
      {key:16,name:'平台统计'}
    ],
    Loading: 0,
    platformId: '',
    incomeData: {},//月收入统计
    codeData: {},//扫码
    chargeData: {},//扫码充值

    //丹---------
    ktvShopData:{},//KTV商铺数据
    writeOffCouponData:{},//核销优惠券数据
    newsNotice:[],
    Noticenews:1,
    NoticenewsFalse:1,
  },
  mutations: {
    login(state, payload) {
      state.in = true
      state.user = payload
    },
    logout(state) {
      state.in = false
      state.user = {}
    }
  }
}














